from parser import Parser
from table import *
from deck import Deck
from dealer import Dealer

t = Table(Deck())

pa = Parser(t)
pap = pa.ProcessMsg
def p1(cmd):
    pap(1234, "Adam", cmd)
def p2(cmd):
    pap(5678, "Marek", cmd)

p1("!join")
p2("!join")
p1("!ready")
p2("!ready")

print "example: p1('!command')"
print

while t.Playable():
    input("console> ")

print "game not playable anymore"
